package eos.dom;

import java.util.Stack;



public class DomCardStack{
	

	private CardId id;
	private int size;

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public DomCardStack(CardId id,int n) {
		size = n;
		this.id = id;
	}
	
	public CardId getId(){
		return id;
	}

	public boolean isEmpty() {
		return size == 0;
	}

	public Card pop() {
		size--;
		return new Card(id);
	}

	public int size() {
		return size;
	}
	
	@Override
	public String toString() {
		return "["+id+"]";
	}

}
